package com.example.pkmedical.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

import com.example.pkmedical.Base.BaseActivity;
import com.example.pkmedical.R;
import com.example.pkmedical.Utils.CommandUtil;
import com.example.pkmedical.Utils.SerialProtUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class RemindNextActivity extends BaseActivity {
    @BindView(R.id.remind_cancle_button)
    Button remindCancleButton;
    @BindView(R.id.remind_text)
    TextView remindText;
    private int mType = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_remind_next);
        ButterKnife.bind(this);
    }

    @Override
    public void initData() {
        switch (mType) {
            case 0:
                remindText.setText(getString(R.string.cefan_over));
                break;
            case 1:
                remindText.setText(getString(R.string.qjzd_over));
                break;
            case 2:
                remindText.setText(getString(R.string.fanshen_over));
                break;
        }
        SerialProtUtil.getInstance().sendBytes(2, CommandUtil.REMIND_MESSAGE);
    }

    @Override
    public void initView() {
        Intent intent = getIntent();
        if (intent != null) {
            mType = intent.getIntExtra("Remind_type", 0);
        }
    }

    @Override
    public void initPresenter() {
    }

    @Override
    public void showDialog(String... msg) {

    }

    @OnClick(R.id.remind_cancle_button)
    public void onViewClicked() {
        finish();
    }
}
